<h4>Add New User</h4>
<hr />
<?php if(validation_errors()) {?>
<div class="alert alert-error"><?= validation_errors(); ?></div>
<?php }?>
<?php echo form_open('founder/user/add_user'); ?>
<table width="100%" class="table">
  <tr>
    <td>First Name</td>
    <td><input type="text" name="first_name" value="<?= set_value('first_name')?>"  /></td>
  </tr>
  <tr>
    <td>Last Name</td>
    <td><input type="text" name="last_name" value="<?= set_value('last_name')?>"  /></td>
  </tr>
  <tr>
    <td>Email</td>
    <td><input type="text" name="email" value="<?= set_value('email')?>"  /></td>
  </tr>
  <tr>
    <td>Phone</td>
    <td><input type="text" name="phone" value="<?= set_value('phone')?>" class="span2" />&nbsp;<input type="text" name="phone1" value="<?= set_value('phone1')?>" class="span2" />&nbsp;<input type="text" name="phone2" value="<?= set_value('phone2')?>" class="span2" /></td>
  </tr>
  <tr>
    <td>Password</td>
    <td><input type="password" name="password" value="" size="50" /></td>
  </tr>
  <tr>
    <td>Password Confirm</td>
    <td><input type="password" name="passconf" value="" size="50" /></td>
  </tr>
  <tr>
    <td>Role</td>
    <td><select name="role[]">
      <option value="">-- Select Role --</option>
      <?php foreach ($roles as $role):
   
			/*if ($role->id == 6) {
				$checked = ' checked="checked"';
			//break;
			}*/
		
		?>
      <option value="<?= $role->id;?>"  >
        <?= $role->name;?>
        </option>
      <?php endforeach?>
    </select></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><input type="submit" value="Create User" class="btn btn-success" /></td>
  </tr>
</table>
</form>
</div>